package com.jyy.prefabricated.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.entity.Option;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
@Data
public class QuestionData {
    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 题目内容
     */
    private String name;

    /**
     * 题干内容
     */
    private String content;

    /**
     * 题库id
     */
    private Integer questionBankId;

    /**
     * 题目类型
     */
    private Integer questionType;

    /**
     * 题干类型
     */
    private Integer stemType;

    /**
     * 题目难度
     */
    private Integer difficulty;

    /**
     * 答案解析
     */
    private String answerKey;

    /**
     * 租户编码
     */
    private String teamCode = BaseTeamEnum.BASE.getValue();

    /**
     * 题目选项
     */
    private List<Option> options;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 区域名称
     */
    private String areaName;

}
